package com.happy_hao.topbiz.token;

import org.apache.shiro.authc.AuthenticationToken;

public class Oauth2Token implements AuthenticationToken {

    private final String phone;
    private final String accessToken;

    public Oauth2Token(String phone, String accessToken) {
        this.phone = phone;
        this.accessToken = accessToken;
    }

    @Override
    public Object getPrincipal() {
        return phone;
    }

    @Override
    public Object getCredentials() {
        return accessToken;
    }
}
